<?php
namespace app\front\controller\v1;
use think\Controller;
use app\front\service\v1\Withdraworder as WithdraworderService;
use app\front\service\v1\CommonFunction as CommonService;
use app\front\service\v1\Pay as PayService;
use app\front\service\v1\Verify as VerifyService;
use app\front\service\v1\gzhCallBack as GzhCallBackService;
use app\front\service\v1\Order as OrderService;
use app\front\service\v1\ShareWx as ShareWxService;
use app\front\service\v1\RedPack as RedPackService;
class BaseController extends Controller
{
  
    public function getCommonService()
    {
        $commonService=new CommonService();
        return  $commonService;
    }
   
    public function getPayService()
    {
        $payService=new PayService();
        return  $payService;
    }
    
    public function getVerifyService()
    {
        $verifyService=new VerifyService();
        return  $verifyService;
    }
    
    public function getGzhCallBackService()
    {
        $gzhCallBackService=new GzhCallBackService();
        return  $gzhCallBackService;
    }
    
    public function getOrderService()
    {
        $orderService= OrderService::getInstance();
        return   $orderService;
    }

    public function getWithdraworderService()
    {
        $withdraworderService= new WithdraworderService();
        return   $withdraworderService;
    }
    
    public function getShareWxService()
    {
        $shareWxService= new ShareWxService();
        return   $shareWxService;
    }
    
    public function getRedPackService(){
        $redPackService=new RedPackService();
        return $redPackService;
    }
   
 
    //用户和CMS都可以访问的权限
//     protected function checkPrimaryScope(){
//         TokenService::needPrimaryScope();
//     }

//     //只有用户能访问的权限
//     protected function checkExclusiveScope(){
//         TokenService::needExclusiveScope();
//     }
  

   
}